/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package calculadora_basica;
import java.util.Scanner;
/**
 *
 * @author JOSE MANUEL
 */
public class Resta {
    double a, b, resultado;
    public Resta(){
        Scanner num1 = new Scanner(System.in);
        Scanner num2 = new Scanner(System.in);
        System.out.println("Ingrese el primer numero: ");
         a = num1.nextDouble();
        System.out.println("Ingreses el numero a restar: ");
         b = num2.nextDouble();
         resultado = a - b ;
    
}
}